<?php
declare (strict_types = 1);

namespace app\validate\admin;

use think\Validate;

class AdminPermissionValidate extends Validate
{
    protected $field = [
        'title' => '标题',
        'uri'   => '链接',
        'pid'   => '上级目录',
    ];

    protected $rule = [
        'title'     => 'require|chsDash|max:100',
        'uri'       => 'require|max:100',
        'pid'       => 'require|integer',
    ];

    protected $message = [];
}
